package es.juanc.crypto;

import java.security.NoSuchAlgorithmException;
import java.security.Security;
import java.util.Arrays;

public class SecurityMain {

	/**
	 * @param args
	 * @throws NoSuchAlgorithmException
	 */
	public static void main(String[] args) throws NoSuchAlgorithmException {

		System.out.println( "Providers: " + Arrays.asList( Security.getProviders() ) );
//		for( Provider provider : Security.getProviders() ) {
//			System.out.println( provider. );
//		}

		System.out.println( "MessageDigest: " + Security.getAlgorithms( "MessageDigest" ) );
		System.out.println( "Cipher: " + Security.getAlgorithms( "Cipher" ) );
		System.out.println( "KeyStore: " + Security.getAlgorithms( "KeyStore" ) );
		System.out.println( "Signature: " + Security.getAlgorithms( "Signature" ) );
	}
}